package com.ruoyi.web.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.purchase.mapper.Rdrecords01Mapper;
import com.ruoyi.web.purchase.domain.Rdrecords01;
import com.ruoyi.web.purchase.service.IRdrecords01Service;

/**
 * 采购子表Service业务层处理
 * 
 * @author czr
 * @date 2024-08-19
 */
@Service
public class Rdrecords01ServiceImpl implements IRdrecords01Service 
{
    @Autowired
    private Rdrecords01Mapper rdrecords01Mapper;

    /**
     * 查询采购子表
     * 
     * @param AutoID 采购子表主键
     * @return 采购子表
     */
    @Override
    public Rdrecords01 selectRdrecords01ByAutoID(Long AutoID)
    {
        return rdrecords01Mapper.selectRdrecords01ByAutoID(AutoID);
    }

    /**
     * 查询采购子表列表
     * 
     * @param rdrecords01 采购子表
     * @return 采购子表
     */
    @Override
    public List<Rdrecords01> selectRdrecords01List(Rdrecords01 rdrecords01)
    {

        return rdrecords01Mapper.selectRdrecords01List(rdrecords01);
    }

    /**
     * 新增采购子表
     * 
     * @param rdrecords01 采购子表
     * @return 结果
     */
    @Override
    public int insertRdrecords01(Rdrecords01 rdrecords01)
    {
        return rdrecords01Mapper.insertRdrecords01(rdrecords01);
    }

    /**
     * 修改采购子表
     * 
     * @param rdrecords01 采购子表
     * @return 结果
     */
    @Override
    public int updateRdrecords01(Rdrecords01 rdrecords01)
    {
        return rdrecords01Mapper.updateRdrecords01(rdrecords01);
    }

    /**
     * 批量删除采购子表
     * 
     * @param AutoIDs 需要删除的采购子表主键
     * @return 结果
     */
    @Override
    public int deleteRdrecords01ByAutoIDs(Long[] AutoIDs)
    {
        return rdrecords01Mapper.deleteRdrecords01ByAutoIDs(AutoIDs);
    }

    /**
     * 删除采购子表信息
     * 
     * @param AutoID 采购子表主键
     * @return 结果
     */
    @Override
    public int deleteRdrecords01ByAutoID(Long AutoID)
    {
        return rdrecords01Mapper.deleteRdrecords01ByAutoID(AutoID);
    }
}
